<%@ page contentType="text/html;charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<title>数据库备份</title>
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/dwr/interface/systemDBBackupAction.js'></script>
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/dwr/engine.js'></script>
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/dwr/util.js'></script>
		<script type="text/javascript">
		//备份数据库
		function backdatabase(){
//		alert("在线备份数据库一直没有很好的解决方案，尤其是在数据量巨大的情况下");
//		alert("我们一直在努力寻找最优的解决问题的方式...We are on it (paraDise sTudio(DT) All Rights Researved!)");
		//$('back_btn').disabled=true; //防止重复提交
		systemDBBackupAction.backup(function(data) {
			alert(data);
			$('back_btn').disabled=false;
			});
		}
		
		function restoredatabase(){
		
		}
		</script>
	</head>
	<body>
		<div id="page_container">
			<%@   include file="banner.jsp"%>
			<div id="outlier">
			</div>
			<input id="back_btn" class="common_button" type="button" value="备份"
				onclick="javascript:backdatabase();">
			(数据将备份到服务器端C盘，以时间为区别的文件夹下)
			<br />
			<!-- 
			<input class="common_button" type="button" value="恢复数据"
				onclick="javascript:restoredatabase();">
				 -->
		</div>
	</body>
</html>